// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__361BF8FA_E4F9_4FB0_875B_44CBF27BDCC9__INCLUDED_)
#define AFX_STDAFX_H__361BF8FA_E4F9_4FB0_875B_44CBF27BDCC9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions

#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h>         // MFC OLE classes
#include <afxodlgs.h>       // MFC OLE dialog classes
#include <afxdisp.h>        // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT


#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h>			// MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT

#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h>			// MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT

#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <MATH.H>
#include <MMSYSTEM.H>

/*
#pragma comment(lib, "GDIPlus/lib/GdiPlus.lib")
#define ULONG_PTR ULONG
#include <GdiPlus.h>
using namespace Gdiplus;
*/
/*
#include "include/LLVCaculateSharpness.h"
#pragma comment(lib, "lib/LLVCaculateSharpness")
*/

#include "include/IniFile.h"
#ifndef _DEBUG
#pragma comment(lib, "lib/utility.lib")
#else
#pragma comment(lib, "lib/utilityD.lib")
#endif

inline bool DBL_GREATER_EQUAL(double x, double y)
{
	return ( (x>y) || ((x-y)>=-0.00001 && (x-y)<=0.00001) );
}
inline bool DBL_GREATER(double x, double y)
{
	return (x>y);
}
inline bool DBL_EQUAL(double x, double y)
{
	return ((x-y)>=-0.00001 && (x-y)<=0.00001);
}
inline bool DBL_LESS(double x, double y)
{
	return (x<y);
}

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__361BF8FA_E4F9_4FB0_875B_44CBF27BDCC9__INCLUDED_)
